<div class="modal-header">
    <h3 class="modal-title">角色管理{{item.role_id=='' && '-新增' || '-修改'}}</h3>
</div>
<div class="modal-body">
    <form class="form-horizontal form-content" name="role_Form">
        <div class="form-group">
            <label for="role_name" class="control-label col-xs-2">角色名称</label>
            <div class="col-xs-10">
                <input type="text" ng-model="item.role_name" required name="role_name"
                       class="form-control" id="role_name" placeholder="角色名称">
            </div>
        </div>
        <div class="form-group">
            <label for="role_name" class="control-label col-xs-2">角色类型</label>
            <div class="col-xs-10">
                <select name="role_type" id="role_type" required
                         ng-options="type.value as type.text for type in userRoleTypes"
                         required ng-model="item.role_type"></select>
            </div>
        </div>
    </form>
</div>
<div class="modal-footer">
    <button class="btn btn-primary" type="button"
            ng-disabled="role_Form.role_name.$invalid"
            ng-click="ok()">确认</button>
    <button class="btn btn-warning" type="button" ng-click="cancel()">取消</button>
</div>